generic repository with query added
logout working + refactorings