Refactored using FOSUser type/datatransformer