worked with email confirmation part