implemented ajax validation with default regular expressions and error messages