Fixed isauthenticated by using authenticateservice