Modified password logic