Fixed user registration for the edit profile