Improved validation for weight field

Non-numeric values and floats with the ',' character
as decimal seperator are checked with client-side
JS. Server-side validation was also improved.