fix bug on wrong nil value for generate_token in tutorials model