Fixed null bug in session, fixed echo in index