implementing new login system on the client side