function submit_creds() { // submit form data to the requested domain } function auth_lookup() { // lookup for user credentials file somewhere }