Added JavaScript validation to some forms