fixing user registration