allow client side specifying base url when register user