Fixing login state