added callback to the autologin process to display alert if login attempt fails
cleaned up character count
extracted activation login out a put into its own global methods