Checking portal access
Preparing the secure login layer.