Updated User class to implement check to ensure email address is unique