Problem
Develop a php script that generate a login system for a student portal.
If the credential entered by the user were not found in the database display a message asking the user to register first else create a session that will lead to the main page of the website.
Your program will contain only 3 pages, one page for login, one page for registration and one main page to get to after successful login.