Show error message when form is submitted with erroneous input

Change-Id: I4ccd795ecf71bae1d21f9122377f50b6c05fa039