[Added] logout func