Authentification module using doctrine