Fixed the problem of values being reseted after a validation error
added some string min validator test