added missing unless statement to pin, if user does not paste in url