added validation
update