close #9 fix registration process