forgot password almost done

Debugging and cleaning up code, still not working ATM will be fixed
tomorrow. :)