remembers login credentials and logs in if app is closed completely