included a try except on validate(admin_class, model) to avoid crashs on
debug mode