index.php checks whether user is logged in or not...

in patient_form.php, "username", "password", and "confirm password" are put into database, and account is created