added amount field validation