Add controller check to index.php. Create user class.