added logic to create the remember me token