login and profile fixes