Refactored EmailPassword login method for greater readability and error feedback.