reorganized logic for adding a new user, and set requirements for
registration