mini fix to hide the login dialog after submitting