updated redirect url in logout function