validation working on both forms