There are 3 pages :[signup.php, login.php, hompage.php];
###################################################################
1- The user name can't be blank.
2- The password can't be blank.
3- The password confirmation must be the same as the password.
4- The user name must be new (not used before).
All of the above is required for the form to be submitted.
-----------[[user name & password registered]]------------
###################################################################
1- The user name can't be blank.
2- The password can't be blank.
3- The user name and password must match what's pre-registered.
All of the above is required for the form to be submitted.
-------------------[[logged in account]]------------------
###################################################################
-
The home page can only be accessed if (logged in account).
-
The sign-up & the login pages cannot be accessed if (logged in account).
To see it in action: https://drive.google.com/file/d/1z1N7uOd24lSkalfgfHqI0PiMni89sgeE/view?usp=sharing