Fix register with outer login