api validations added