added so u can check if user is logged in and fixed a bug in the session handler