Fix signin/out scripts so they actually work