Fixed earlier problem of login state inconsistency