Regular expression validator not validating