registration validation fixes