checkLength

protected fun checkLength(password: String, length: Int): Boolean