function for getting data about user from nd