created logout controller