added name validation for item and implemented invalid input tests