added a message that flashes when form validation fails