trims formdata on input, to refuse empty form inputs
template fixed (wrong formulation)