ligin and logout work almost done