implemented email confirmation