sorted errors with session data & user id