Correcting login context, auto-login with ,preventnig getting back to
login screen
Reformatting