fixing signin bug-- 1 failing test but might be because of spyOn