Added validations and password to user model