Fix /layouts/main.php(don't show userBox for unregister users).