removed major bug during registration for user preferences