Adding validation to my form and display errors