fixed one time login bug