update regular expression in validation method