Password policy function changed