Added validation and error messages to forms