adding error handling for entering in bad hash id