fix login into password protected profiles
Merge pull request #5455 from Montellese/fix_profile_password_login