Sonata User bundle and fix some bugs