add unique index to users email
validate uniqueness of email
allow the user to login by email or username