Fixed checking for admin