A non-tight gas cap causing a CEL is a very common issue. The computer will eventually reset itself once you have firmly tightened the cap. If you want to clear it earlier disconnect the battery for a few hours.