Redirects login page to dashboard if already logged in