Registration and password check fixed