use session for id (lol) and g for user object
Fix it