changed tabs to php functions, unified landing page, created session variables in check.php