Fix/check valid session * fix:session - check if valid session * Refactor Approved-by: Joakim Jäderberg