Changes to allow update of user photo upon login.