I am being told the serial # I entered for lr5 is invalid,but it isn't
Probably you have a version of Lightroom for which your serial number is invalid.
This most often happens when you download the Creative Cloud version of Lightroom but the serial number is for the standalone version (or vice versa).
You can download the standalone version from Product updates
Retrieving data ...