Creating the getUser function