Implemented client side passport functionality. NOT WORKING!