adding client side base login and authentication