I have input for username and password on the login page, and after submitting username and password are sent to node.js via POST request, and node.js will check they are valid.