Pass user class to user provider