A discount store assistant in Gateshead sent a birthday greeting to a 13-year-old girl who was a customer at the shop where he worked, a court was told.