adds lost password handling and other updatese Fixes #13