[ Finishes #62839096 ] Added the logic to build password string.