complete Login/Register flow