there are security implications here if you're not careful.
You must take care that your code is ULTRA safe in that no one can exploit the form post function when you submit the form and get the site data. But to be honest, unless the site is a huge really important top secret one, i doubt if anyone would attempt to do that.
Also, every page thereafter, you will have to check a login variable to make sure the user viewing the page has first gone through the login screen.
My suggestion is once the user has succesfully completed the form submit function and logged in, you set a $loggedin session variable that is then checked by a generic function on each page thereafter.
I would put the checking function within a general include and include it within each page so you are not replicating code.
Just check for the loggedin var, if it exists then fine, carry on and load the page else redirect to a noaccess page of some description informing the user of their status and offering them the chance to login.
Any more help, just let me know.
Cheers,
Leon