adding form error element
adding wait-on-submit functionality