how to valid two fields