email validation method + thread_wait fix