refactor validations for better error diagnosis, remove request configuration parameter