Implemented login functionality using email address as username.