Fixing user registration