add validation for some forms