Settings page didn't auto-log in the user