isAdmin method to work