some login logout stuff that should be in an angular route