converting user to hash