Corrected issue on form submission and undefined index.