I have a login.php file that asks for username and password then it will redirect to my index.php file wherein it will check if the user is an admin, technical, or user.