Added getUserType in global.php, added a non-functional searchbar in template