a few code improvements were made
 Added the ability to add class to checked field's parent in the case of error or a valid