init of reg/login