I added the functioning AJAX call to logIn.php in mainScript.js that will authenticate user log in and redirect to cupcakeordering.html on success. Still need to add aditional messages when log in fails.