Add password resetting function.