adding error messages to the form fields

adding error messages if there are any to the form field