login logout fix