added wrong password confirmation functionality