Tried adding scope=channel_editor in the Login link as follows but its still the same as earlier.
<a href="https://id.twitch.tv/oauth2/authorize?client_id=<?php echo $client_id; ?>&redirect_uri=<?php echo $redirect_uri; ?>&response_type=code&scope=channel_editor">Login</a>