Added user check function, removed old functions.

If current user exist it AD, skip to the next user in loop.