Remove checkadmin function, use OOP instead