Veeva Systems Interview Question

Write a basic login form that talks to an API and redirects based on the response. Re-write or update the HTML form using jQuery and a single HTML page (SPA w/o a framework).