hmm... well, try without refresh I guess.
redirectexit('action=register;sa=agreement', true);
to:
redirectexit('action=register;sa=agreement');
and:
redirectexit('action=register;sa=privacypol', true);
to:
redirectexit('action=register;sa=privacypol');