add user register, login and logout