fix login box not hiding