Fixed the session and update user profile now works with session