Fixed bug in form validation. Added ability to specify the message as an attribute of the input.