Regular expressions and validation error messages are fixed.