added validations to merchant