move account created hook before login