added success alert and submit was corrected