use digest and fiexd redirect after registration