update to send logged in users to admin.php and logged out users to login.php