fix activation link sometimes not working
fix user variable undefined