fixed user registration