added validation to update match