Wifi connection with username and password
That pop-up page is called captive portal. 
You have to sign into it using your given username and password in order to connect to the internet.

In your phone you are not automatically redirected to the captive portal.
You can manually go to captive portal by entering the URL of the portal to the  address bar of your browser. 
Find the URL from your friends phone.