Login auth api integration

Login integration with the API.