(refactor) Adjust login redirect to work with live server