Fixed some errors on new user registration