added user and department vaildations