Live and learn, we've all been there. I would recommend an external password managing program like KeePass. It can store password for many things, not just stuff in your browser, and allows you to export your password database for easy backing up.