Implemented logout

Also added cursor hiding on processing