corrected the form so it passes correct values