added the login for all pages