Client side validation for adding new sentences