adding error output for forms