fix validation.js

added regexp to fun validateMin