Development, validation and use of a smartphone application for weight loss