Setting up a router login password

I have recently brought an Xfinity router but I cannot figure out how to set up the xfinity router login password which is indeed causing me troubling me as I cannot use the internet any suggestion would be appreciated.