add methods to LoginConstraint.