Updated client to reflect the recent changes with added totp support