modified warning to only show if a user isn't logged in