addeing password handling to the client side