adding logout option to overload login validity