fixed logout issue only but problem with marks code