adding session check decorator