add error messages to forms