small fix on validation