password model applied