added email regex validation
added password_digest