Added min length too validation, plus tests