changed user from session to OOP method