Made nested user hash in api