fixed return for ajax department validation errors