Updated User class to ensure password matches password confirmation and that email address and username are unique