modify validation component and complete validation for api methods