Add set password logic