Connections between main and login pages are established.