result validation before submit