Bugfix on re-displaying the form when errors occured