make the right validation for ajax on ValidationBox