create user model
db changed
add validation to user model
add user model validation
migrate db add unique index to user.email
add callback to user model for downcase email field
add secure password to user