redirects to dashboad if user is logged in