bug for hiding login panel