Added pwauth code