Added back the error functionality for the form