fixed user registration and edit profile