added attr accessor to user model and validated presence and uniqueness of email