Added publish permissions to loginbutton