API

Enable login by email and password through API.
Add error handling to give good feedback to the user.