solved problem of generating new user