User activation and password reset debugged and fixed.