fix MAJOR bug with user registration