Display errors if form is invalid
Full working version