move validators to api