Fix uninitialized issue in User class.