Directs user to SM login screen during publish

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