Added validation statements and methods, and attributes to the user model.