Redirect to login page if not logged otherwise show error.