Login / register now take GET parameter 'next' to determine what url to redirect to in case of a successful action.