injecting user details into env