Add validation to admin panel