Added browser side to-string-pattern validation. Added some server side
validations. To do: server side to-string-pattern validation.