UI and API call for login