checking data from select box for departments