check entered sum