configurable user class in user repository; usernameOrEmail validator