Added tab icon and redirect if logged in