implement registration, forgot pwd, authentication a.o.