fixes signout function by using redirect instead of render