finished edit feature to include invalid name error