Enables to call validation function in controller