Added a required flag to the fields in the login page.
Implemented a basic interface for the API.