add support for check-password