test form errors for invalid submission

page 322 7.6 exercise #2