added some validation on activitate form