fixed inputs; added validation; added js commas