updated register validation