I just found out I am not able to login magento admin on google chrome browser and I am using Xampp. Seems like Magento 2 doesn’t allow ‘localhost’ in the url something similar to “http://localhost/magento2”
But anyway there is a solution for this I have changed “http://localhost/magento2” to “http://127.0.0.1/magento2” . This can be updated directly on the Magento’s database table ‘core_config_data’.
Cheers!