lots of old fixes, and made resets of once password also send out an email