Added validations for email and user name. Pair-programmed by John and Gordon