make login logout user work in UI. You can change in rest/user isLogged variable to true to see the result