consumer validation logic

Change-Id: If0329481f8c08a120a9198e7c0c3018c25a9f21d