added validation for name changed name