validation on both forms