implemented initialUser function