Added Input Validation using Regex

Code in Main was used to test validation