If condition requried. Else the token comes as null and app breaks