Changes register to allow creation of user with stricter validations in place on server. Adds conditionals to prevent unnecessary errors.