adding a loop counter to make the lesson links show correctly based on the user acount creation