Creating form not saving correctly