fixed password change bug. cleaned up some code