add new function   logout  and loginfo