check user before use code watcher