Fixed a bug with the POST values not being stored if the validation fails