fixes on login and profile