Added sessionID checks on API methods