added in session checks, but not actual session code. will probably update that later.