Update pw to inputSecret field
Update frontend