I just watched Robert's video on assembling S40 frame set. Congratulations! S40 comes with cartridge bearing headset. The two previous diagnoses are probably not correct. The star nut would bite into the inner surface of the aluminum steer tube and therefore should not move. If the two stem bolts are not tightened sufficiently, not only headset will become loose, the handle bar will be out of alignment also. We therefore come to the 3rd diagnosis: the bearings are not installed correctly. The general rule are: the tapered inner edge of the cartridge bearing should mate with inner race, while tapered outer edge (if there is tapered outer edge) should face the bearing cup. Since the bearing balls do not come in contact with the inner races, both are made of softer aluminum alloy and are not complete rings (both have a gap). First you install the crown race with your finger (since there is a gap, no need to slam it down with a steel tube). The upper bearing with tapered inner edge should facing up. If these are not installed correctly, the headset will become loose.