added isHost variable for validation check