fixes minor bugs in change pw