Fixed errors when refreshing login info grabbed from cookie