On this page we allow users to log in.
The very important part to note on this page is that we set the page's Page Action to login.php instead of the default login_process.php (which again is the default action RackForms creates for us).
This is so because we use the Query modules Code After Query block to handle the POST parameters from this page with PHP header() function redirects.
We do this because if we passed the page to the normal process page, we do not have the ability to perform the custom SQL lookup on the user name and password.
In a way then, when doing custom processing like this we save time and space by keeping all login logic on one page, as opposed to several.