Added in logic to direct user to SM login screen if selected during publish.