modified login and confirm