Protects pages and shows a fancyBox with login page if the user isn't logged in.