Ensured the submit dialog hide/show happens reactively when the user logs in or out.