added basic presence and length validations to User model
Added index and unique constraint to email field
Adding secure password and validation to user model