Fixed bugs with adding user profile.