Define user model
Validate presence of user model attributes
Fix assertions to strict equals
Validate formats
Validate uniqueness
Create unique indexes on email and remember_token
Move validation functions into function being exported