There is a known iOS problem that some app data such as the login is deleted if the device (iPhone, iPad) has very little memory. It helps to optimize the memory, i.e. to delete or swap out unused apps and to store photos/videos in the iCloud. The following guide from Apple should help: https://support.apple.com/en-gb/HT201656