fixed minor login issues and added some name validations for the user model
added email uniqueness validation. removed password field from users table and replaced with password_digest for secure password.