fixing regex to verify hash is numeric