added the change pw feature and some other stuff