How do I put validation using regular expression, I have number field and want to submit only selected numbers?