added isValidName() to check name and validateName() to reduce code duplication
updated package variable in requirements