Added error message if form has errors