Added verification of login for accessing pages