added alert for form error