added minLength and pattern validators