added user type to login.php