Fixed register->login error.