added password confirmation functionality and tested