Added password encryption to set property