check

fun check(value: String)

runs the validation function for the provided value and saves the result inside the state