fixed user registration process