regular expression used for input field validation