Added session status to model and made API endpoint