added check to make sure admin user exists