initial web app code: need to change it for our purposes

web app code for user authentication which we'll need to alter for our authentication