getting password option to password var