added functionality of email confirmation for user login