Added condition to the admin