updated name validator