fix validation regular expressions