fixed signin/logout