validateTextInput error and success closures added