Fix for the login and update profile