Create requirelogin-class.php