make sure the name parameter is entered