refactor the header validation, setup and using constants
changes fetch url from config for dev and preprod
fixed lint
change to setUp