more registration/login logic