made validation for admin interface work