added register account and login