Change redirect(path, status) to redirect(status, path) and return login redirect