Utterly dirty login logut functionality