add user login, logout and authorize