adding confirmation for registration and login