Adds error messages in the form