fixed user registration issues