Instantiating mDetails inside the for loop

There was a small bug in the createUserDetails method.