Add and implement a part of fos-user-bundle