added register, login