Redirect anonymous users to login page when adding node to flag list