Close attempted dialog when pop up login box