logged in application controller now redirects to login instead of index.