distinguish #auth and #register