fix registration process