Set up Session model

Also fixed a typo in error message