add validation and seperation of departments by acount