Corrected some undefined index on form submission errors.