Added a setValidator method to change the behaviour of the FormField dynamically on certain cases.