restore disable registration feature - fix #58