Complete the API and add the login view