consolidated register and login functions in JumpController