add nextURL functionality to signIn