Fix lastname and firstname for mail and add pattern by dependency injection