refactor reset token creation