Changing the selector for the dialog title & moving the non logged in test & warning into the callback