fixed null being passed to authorize