User entity to session