Added tab icon and redirect if already logged in